The Absolute Beginners Guide To Amos ------------------------------------- Chapter fourteen ---------------- And now a brief word about the SAY command, this command uses the Narrator.Device, which can be found in the DEVS drawer on your Amos system disk or your Workbench disk. For the SAY command to work you must have the Narrator.Device on the currently used disk as Amos will automatically attempt to load it before use of the command. The say command makes your Amiga speak to you in a synthetic voice and can be very useful in some programs, Educational games for example where the Amiga could talk back to the child. Here is the syntax, SAY "TEXT" It`s very simple isn`t it? Just type what you want the Amiga to SAY to you inside quotes, just like the PRINT command. Load EXAMPLE14.Amos for a quick demonstration. As you will realize the quality of the speech can be a bit erm... let us say rubbish. If SAY is having problems with a particular word then try changing the spelling of it, e.g. AMIGA to AMEEGAR. There are in fact two speech modes for the SAY command as default your Amos program will stop while the SAY command does it`s thing but you can set multitasking on using by putting a 1 after your command this will let your program continue executing the commands after the SAY command but will slow your program down a little. Here is the syntax, SAY "A LOAD OF RHUBARB",1 The 1 is the multitasking toggle, to return to normal change this to 0. Don`t forget the text can be a string variable if you need or want. Like this, SAY T$ or SAY YAP$,1 You can make some other system changes to the SAY command as follows. SET TALK sex,mode,pitch,rate SEX --- (No puns here please) The SEX mode let`s you change between 0 male or 1 female voice, which by the way does not work very well, you will be better off changing the PITCH value. Mode ---- Default is 0. If set to 1 then adds a strange rhythmic pattern to the voice. PITCH ----- Changes the frequency of the voice from 65(low) to 320 (incredibly high) RATE ---- Specifies the speed of the talking in words per minute ranging from 40-400. That`s more than enough on the SAY command let us move on to samples. SAMPLES: ======= The easiest way to get samples into Amos and play them is to use the Amos Sample_Bank_maker provided on the Amos programs disk, this will convert your samples into an Amos memory bank file (ABK) which you can load into bank five, the default sample bank. You can load your sample bank in like this: LOAD "SAMPLES.ABK" And your samples will be in memory ready for use. By the way you could now delete the line as we only need to load the bank once as it will be saved along with our program listing. Really there are only two commands you need to use for playing samples which are as follows, SAM LOOP on/off and SAMPLAY sample number SAMLOOP ------- Is just like TRACK LOOP ON or TRACK LOOP OFF, remember that one? SAMLOOP will continuously play the last played sample forever or until Amos reaches a SAMLOOP OFF. SAMPLAY ------- This actually plays the sample requested from bank five. You can store as many samples as you want in a bank, memory permitting. There are a few other commands but we don`t need to look at these stage such as SAMBANK bank no. Which allows you to play samples from different banks. I don`t want to go any further as confusion may get the better of you, just load EXAMPLE14_1.Amos and mess around with that for a while. End of chapter fourteen.